package Bk.basic;

import java.util.Scanner;

import bk.model.ConcertVO;
import bk.service.Concert;

public class ConcertMain {

	private static String TITLE = "배열을 이용한 공연 예약 프로그램";
	private static String MENU = "(1) 예약, (2) 조회, (3) 취소, (0) 종료";
	
	public static void main(String[] args) {
		
		ConcertVO cvo = new ConcertVO();
		Concert con = new Concert();
		
		Scanner sc = new Scanner(System.in);
		
		System.out.println( TITLE );
		System.out.println( MENU );
		cvo.setMenuNo( sc.nextInt() );
		switch( cvo.getMenuNo() ) {
			case 1: con.conRsv( cvo ); break;
			case 2: con.showRsv( cvo ); break;
			case 3: con.cancelRsv( cvo ); break;
			case 0:	sc.close();
				con.exit( cvo );
		}

	}

}
